package cn.chinaflame.pagodas.req;

import java.math.BigDecimal;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;

/**
* @author    created by lbq
* @date	     2018年7月25日 上午11:32:47
**/
public class PaBalmOrderAddReq {
	private String openid;//openid
	private String mobile;//手机号
	private String goodsId;		//随缘捐赠商品ID
	private BigDecimal money;//金额
	private String orderId;//灯订单id


	public void check(){
		ParamPreconditions.checkNotEmpty(openid, CodeEnum.FAIL.getCode(), "openid不能为空");
		ParamPreconditions.checkNotEmpty(mobile, CodeEnum.FAIL.getCode(), "手机号不能为空");
		ParamPreconditions.checkNotEmpty(orderId, CodeEnum.FAIL.getCode(), "原订单号不能为空");
		ParamPreconditions.checkNumberByMoney(money);
	}

	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}
}
